﻿using Company.Application.Login.Views;
using Company.Core.Models;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Application.Login
{
    [Module(ModuleName = nameof(LoginModule),OnDemand = false)]//模块将被直接加载到主项目中
    public class LoginModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
            regionManager.RegisterViewWithRegion(Names.ShellRegion, typeof(LoginView));
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {

        }
    }
}
